<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8"/>
        <title>PHP+MySQLI的学生信息管理</title>
    </head>
    <body>
        <center>
            <h3>编辑学生信息</h3>
            <form action="{{url('stu')}}/{{$stu->id}}" method="post">
                <input type="hidden" name="_method" value="PUT">
                   <input type="hidden" name="_token" value="{{ csrf_token() }}">
             
              <table width="300" border="0">
                <tr>
                    <td align="right">姓名：</td>
                    <td><input type="text" name="name" value="{{$stu->name}}"/></td>
                </tr>
                <tr>
                    <td align="right">性别：</td>
                    <td><input type="radio" name="sex" value="m" @if ($stu->sex=="m")checked @endif/>男
                        <input type="radio" name="sex" value="w" @if ($stu->sex=="w")checked @endif/>女</td>
                </tr>
                <tr>
                    <td align="right">年龄：</td>
                    <td><input type="text" name="age" value="{{$stu->age}}"/></td>
                </tr>
                <tr>
                    <td align="right">班级：</td>
                    <td><input type="text" name="classid" value="{{$stu->classid}}"/></td>
                </tr>
                <tr>
                    <td colspan="2" align="center">
                        <input type="submit" value="编辑"/>
                        <input type="reset" value="重置"/>
                    </td>
                </tr>
              </table>
            </form>
        </center>
    </body>
</html>